/*
 * @Author: your name
 * @Date: 2021-06-07 08:30:21
 * @LastEditTime: 2021-06-16 17:27:16
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \CPP\UDP\guide.cpp
 */
#include "guide.h"
#include "case.h"

void Guide::initial_Guide()
{
    cout << "欢迎光临电商之家" << endl
    << REGISTER << ".注册" << endl
    << LOGIN << ".登录" << endl
    << U_SHOW_PRODUCTS << ".查看平台商品" << endl
    << EXIT << ".退出系统" << endl;
}

void Guide::consumer_Guide()
{
    cout << "----------欢迎登录----------" << endl;
	cout << SHOW_PRODUCTS << ".查看所有商品" << endl;
	cout << RETRIEVE_PRODUCTS << ".检索商品" << endl;
	cout << ADD_CART << ".添加购物车" << endl;
	cout << MODIFY_CART << ".修改购物车" << endl;
	cout << SHOW_CART << ".展示购物车" << endl;
	cout << CREATE_ORDER << ".生成订单" << endl;
	cout << CHECK_BALANCE << ".查看余额" << endl;
	cout << RECHARGE_BALANCE << ".充值" << endl;
	cout << CHANGE_PASSWD << ".修改密码" << endl;
	cout << LOGOUT << ".退出登录" << endl;
}

void Guide::show_Com_Header()
{
	cout << "商品标识" <<"\t"
		<< "名称" << "\t"
		<< "品牌" << "\t"
		<< "类别" << "\t"
		<< "单价" << "\t"
		<< "剩余数目" << "\t"
		<< "冻结数目" << "\t"
		<< "额外信息" << endl;
}

void Guide::merchant_Guide()
{
    cout << "----------欢迎登录----------" << endl;
	cout << M_SHOW_PRODUCTS << ".查看所有商品" << endl;
	cout << M_RETRIEVE_PRODUCTS << ".检索商品" << endl;
	cout << M_ADD_PRODUCTS << ".添加商品" << endl;
	cout << M_MODIFY_PRODUCTS << ".修改商品" << endl;
	cout << M_CHECK_BALANCE << ".查看余额" << endl;
	cout << M_LOGOUT << ".退出登录" << endl;
}

void Guide::merchant_Modify_Com_Guide()
{
	cout << MODIFY_COM_NAME << ".修改商品名称" << endl;
	cout << MODIFY_COM_BRAND << ".修改商品品牌" << endl;
	cout << MODIFY_COM_CLASSIFY << ".修改商品种类" << endl;
	cout << MODIFY_COM_PRICE << ".修改商品价格" << endl;
	cout << MODIFY_COM_REMAIN << ".修改商品剩余量" << endl;
	cout << MODIFY_COM_OTHERS << ".修改商品其他信息" << endl;
	cout << MODIFY_COM_FINISHED << ".修改商品完成" << endl;
}
